package com.qf.config;

import com.qf.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Configuration ：标记在类上，该类为配置类
 * @Bean: 标记在方法上，把方法的返回值对象，存储在Spring IOC容器中
 * @version v1.0.0
 * @Description:
 * @author: 姜红凯
 * @date: 2022.03.09
 * @since 1.0
 */
//@Configuration
public class UserConfig {

//    @Bean
    public User createUser(){

        User user = new User();
//        user.setId(1);
//        user.setUsername("赵英杰");
//        user.setAge(10);
        return user;
    }
}
